package com.ruoyi.web.controller.example;


import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.exception.BizException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "异常测试")
@Anonymous
@RestController
public class ExceptionController {

    @GetMapping("/TestBizException")
    @ApiOperation(value = "bizException测试")
    public AjaxResult TestBizException(){
        throw new BizException(500,"这是bizException");
    }
}
